package com.wjy.common.mq.ps;

import com.wjy.common.util.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Publisher {

    @Autowired
    private RedisUtil redisUtil;

    public int publish(String channel, String message) {
        int num = redisUtil.publish(channel, message);
        return num;
    }

}
